﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IntegratedOnBordDebug
{
    [Serializable]
    public class InfoRef
    {

        private object para = new object();
        /// <summary>
        /// 参数数据
        /// </summary>
        public object Para
        {
            get { return para; }
            set { para = value; }
        }

        private object data = new object();
        /// <summary>
        /// 数据
        /// </summary>
        public object Data
        {
            get { return data; }
            set { data = value; }
        }
        private InfoEnumClass.emState state = InfoEnumClass.emState.Failied;
        /// <summary>
        /// 结果
        /// </summary>
        public InfoEnumClass.emState State
        {
            get { return state; }
            set { state = value; }
        }

        private int count = 0;
        /// <summary>
        /// 受影响的数量
        /// </summary>
        public int Count
        {
            get { return count; }
            set { count = value; }
        }

        private int affected = 0;
        /// <summary>
        /// 受影响的数量Ex
        /// </summary>
        public int Affected
        {
            get { return affected; }
            set { affected = value; }
        }


        private string cmd = string.Empty;
        /// <summary>
        /// 指令
        /// </summary>
        public string Cmd
        {
            get
            {
                return cmd;
            }
            set
            {
                cmd = value;
            }
        }

        private InfoEnumClass.emCode code = InfoEnumClass.emCode.Unknown;

        /// <summary>
        /// 特征码
        /// </summary>
        public InfoEnumClass.emCode Code
        {
            get { return code; }
            set { code = value; }
        }

        private string histroy = string.Empty;
        public string History
        {
            get { return histroy; }
            set
            {
                histroy = value;
            }
        }

        public string reserved = string.Empty;
        /// <summary>
        /// 保留字段
        /// </summary>
        public virtual string Reserved
        {
            set { reserved = value; }
            get { return reserved; }
        }

        public static bool blnMonitorRun = false;

    }
}
